package com.nuonuo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author duan
 * @version 1.0
 * @date 2023/4/12 12:54
 */
@RestController
@RequestMapping(value = "/")
public class TestController {
    @GetMapping(value = "testHello")
    public String testHello1(HttpServletRequest request) {
        return request.getRequestURI();
    }

    @GetMapping(value = "test/sayHello")
    public String sayHello2(HttpServletRequest request) {
        return request.getRequestURI();
    }

    @GetMapping(value = "api/testHello")
    public String testHello3(HttpServletRequest request) {
        return request.getRequestURI();
    }
}
